import Home from '@/pages/Home'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import Search from '@/pages/Search'


export default [
    {
        path:'/',
        component:Home,
    },
    {
        path:'/login',
        component:Login,
        meta:{isFooterHide:true}
    },
    {
        path:'/register',
        component:Register,
        meta:{isFooterHide:true}
    },
    { 
        name:'search',
        path:'/search/:keyword?',
        component:Search,
        props:true,
        props(route){
            return {keyword:route.params.keyword,keyword2:route.query.keyword2}
        },  
    },

]